package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**订单优惠模型
 * Created by Ellis.Li on 2017/5/12.
 */
public class VoucherInfo extends BaseModel<VoucherInfo> {

    /** 会员优惠券ID*/
    public String voucher_member_id;
    /** 优惠券名称*/
    public String voucher_name;
    /** 金额*/
    public String discount;

    @Override
    public VoucherInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            voucher_member_id = jsonObject.optString("voucher_member_id");
            voucher_name = jsonObject.optString("voucher_name");
            discount = jsonObject.optString("discount");
            return this;
        }
        return null;
    }
}
